﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CategoriesMgmView.aspx.cs" Inherits="Skynet.WebSite.Mobile.CategoriesMgmView.WM7.CategoriesMgmView"  Theme="WM7" StylesheetTheme="WM7"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Style/wm7style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <h1>Categories</h1>
    <div>
        <table >
            <tr> 
                <td>
                    
                    <asp:GridView ID="gvCategories" runat="server" AllowPaging="True" 
                        ViewStateMode="Disabled"
                        AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
                        BorderStyle="None" BorderWidth="1px" CellPadding="4"  Width="250mm"  Height="200mm"
                        DataSourceID="ocdsCategories" ForeColor="Black" GridLines="Horizontal"
                         Font-Size="10mm" DataKeyNames="Id" PageSize="5" onselectedindexchanged="gvCategories_SelectedIndexChanged">
                        <Columns>
                            <asp:CommandField ShowDeleteButton="True" ShowSelectButton="True" />
                            <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" 
                                Visible="False" />
                            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                            <asp:BoundField DataField="Description" HeaderText="Description"  ItemStyle-Font-Size="3mm"  HeaderStyle-Font-Size="15mm"
                                SortExpression="Description" />
                            <asp:BoundField DataField="OptimisticId" HeaderText="OptimisticId" 
                                SortExpression="OptimisticId" Visible="False" />
                            <asp:BoundField DataField="FullDescription" HeaderText="FullDescription" 
                                ReadOnly="True" SortExpression="FullDescription" Visible="False" />
                        </Columns>
                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" Font-Size="15mm" />
                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" Font-Size="15mm" />
                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                        <SortedDescendingHeaderStyle BackColor="#242121" />
                    </asp:GridView>
                    
                </td>
            </tr>
            <tr>
                <td>
                    
                
                    <asp:DetailsView ID="dlWorkCategory" runat="server" AutoGenerateRows="False" 
                        ViewStateMode="Disabled"
                        Height="50mm" Width="250mm" 
                        CellPadding="4" DataSourceID="ocdsWorkCategory" DefaultMode="Insert" 
                        ForeColor="#333333" GridLines="None" DataKeyNames="Id" >
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                        <EditRowStyle BackColor="#999999" />
                        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
                        <Fields>
                            <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" 
                                Visible="False" />
                            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                            <asp:BoundField DataField="Description" HeaderText="Description" 
                                SortExpression="Description"    ItemStyle-Width="160mm"/>
                            <asp:BoundField DataField="OptimisticId" HeaderText="OptimisticId" 
                                SortExpression="OptimisticId" Visible="False" />
                            <asp:BoundField DataField="FullDescription" HeaderText="FullDescription" 
                                ReadOnly="True" SortExpression="FullDescription" Visible="False" />
                            <asp:CommandField ShowInsertButton="True" ShowEditButton="True" />
                        </Fields>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" Font-Size="15mm" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Font-Size="10mm" />
                    </asp:DetailsView>                   
                
                </td>
            </tr>
           
            <tr>
                <td> 
                    <asp:ObjectDataSource ID="ocdsCategories" runat="server" 
                        DataObjectTypeName="Skynet.BusinessEntities.ExamCategory" DeleteMethod="Delete" 
                        OldValuesParameterFormatString="original_{0}" SelectMethod="GetCategorias" 
                        
                        TypeName="Skynet.WebAdministracion.Views.CategoriesMgm.CategoriesMgmPresenter" 
                        InsertMethod="Add" UpdateMethod="Update"></asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="ocdsWorkCategory" runat="server" 
                        DataObjectTypeName="Skynet.BusinessEntities.ExamCategory" DeleteMethod="Delete" 
                        InsertMethod="Add" OldValuesParameterFormatString="original_{0}" 
                        SelectMethod="GetOne" 
                        TypeName="Skynet.WebAdministracion.Views.CategoriesMgm.CategoriesMgmPresenter" 
                        UpdateMethod="Update">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="gvCategories" DbType="Guid" Name="Id" 
                                PropertyName="SelectedValue" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
   
    </div>
    </form>
</body>
</html>
